package messages;

import logic.Team;

public class ConnectionEstablished implements GameMessage {
	private Team remoteColor;
	private Team localColor;
	private String serverName;
	
	public ConnectionEstablished(String remoteName, Team remoteColor, Team localColor){
		this.remoteColor = remoteColor;
		this.localColor = localColor;
		this.serverName = remoteName;
	}
	
	public Team getRemoteColor(){
		return remoteColor;
	}
	
	public Team getLocalColor(){
		return localColor;
	}
	
	@Override
	public String getMessage() {
		return "Connected to "+serverName;
	}

	@Override
	public void setMessage(String message) {
		this.serverName = message;
	}

}
